package service.dataFormater;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;

import service.properties.ConfigurationCheminsProperties;
import service.securite.Cryptographie;

public class ClientDataFormater {
	
	public static String getUrlValidationCompte(String id, String email) throws UnsupportedEncodingException, NoSuchAlgorithmException {
		String url = null;
		
		url = "";
		url += ConfigurationCheminsProperties.getRessource("domaine");
		url += ConfigurationCheminsProperties.getRessource("dossierSite");
		url += "ValidationInscriptionClient?id=" + id;
		url += "&key=" + Cryptographie.hashage(id+email);
		
		return url;
	}
	
}
